<!doctype html>
<html lang="zh-Hans">

<head>
    <meta charset="utf-8">
    <meta name="author" content="Fresns" />
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="generator" content="Bootstrap 5">
    <title>Fresns 控制面板基础版</title>
    <link rel="stylesheet" href="../assets/css/bootstrap.min.css">
    <link rel="stylesheet" href="../assets/css/bootstrap-icons.css">
    <link rel="stylesheet" href="../assets/css/admin.css">
</head>

<body>
    <header>
        <nav class="navbar navbar-light bg-light shadow-sm">
            <div class="container-lg">
                <a class="navbar-brand" href="index.html"><i class="bi bi-gear"></i> 控制面板 <span class="badge bg-secondary fs-9">基础版</span></a>
                <ul class="navbar-nav me-auto d-flex flex-row flex-wrap">
                    <li class="mx-2 mx-lg-3"><a class="nav-link" href="policies.html">协议设置</a></li>
                    <li class="mx-2 mx-lg-3"><a class="nav-link" href="sites.html">站点设置</a></li>
                    <li class="mx-2 mx-lg-3"><a class="nav-link" href="sends.html">发信设置</a></li>
                    <li class="mx-2 mx-lg-3"><a class="nav-link active" href="storage-images.html">存储设置</a></li>
                    <li class="mx-2 mx-lg-3"><a class="nav-link" href="filters.html">过滤配置</a></li>
                </ul>
                </div>
            </div>
        </nav>
    </header>

    <main>
        <div class="container-lg p-0 p-lg-3">
            <div class="bg-body shadow-sm mt-3 p-4 p-lg-5">
                <div class="row mb-4">
                    <ul class="nav nav-tabs nav-fill">
                        <li class="nav-item"><a class="nav-link" href="storage-images.html">图片存储设置</a></li>
                        <li class="nav-item"><a class="nav-link" href="storage-videos.html">视频存储设置</a></li>
                        <li class="nav-item"><a class="nav-link active" href="storage-audios.html">音频存储设置</a></li>
                        <li class="nav-item"><a class="nav-link" href="storage-docs.html">文档存储设置</a></li>
                        <li class="nav-item"><a class="nav-link" href="storage-repairs.html">补位图设置</a></li>
                    </ul>
                </div>
                <form class="form-setting">
                    <!--存储配置-->
                    <div class="row mb-4">
                        <label for="account_policies" class="col-lg-3 col-xl-4 col-form-label text-lg-end">存储配置：</label>
                        <div class="col-lg-8 pt-2">
                            <div class="input-group mb-3">
                                <span class="input-group-text w-25">存储服务商</span>
                                <select class="form-select" id="audios_service">
                                    <option value="">不启用</option>
                                    <option value="2">本地存储（业务服务器）</option>
                                    <option value="3">WebDAV</option>
                                    <option value="4">Amazon S3</option>
                                    <option value="5">Backblaze B2</option>
                                    <option value="6">Dropbox</option>
                                    <option value="7">Microsoft OneDrive</option>
                                    <option value="8">Microsoft Azure File Storage Service</option>
                                    <option value="9">Microsoft Azure Blob Storage Service</option>
                                    <option value="10" selected>Google Cloud Storage</option>
                                    <option value="11">Google Drive</option>
                                    <option value="12">OpenStack Swift</option>
                                    <option value="13">Box</option>
                                    <option value="14">DigitalOcean Object Storage</option>
                                    <option value="15">Linode Object Storage</option>
                                    <option value="16">Vultr Object Storage</option>
                                    <option value="17">七牛云 对象存储 Kodo</option>
                                    <option value="18">又拍云 云存储 USS</option>
                                    <option value="19">阿里云 对象存储 OSS</option>
                                    <option value="20">腾讯云 对象存储 COS</option>
                                    <option value="21">网易蜂巢 NOS</option>
                                    <option value="22">UCloud 对象存储 UFile</option>
                                    <option value="23">华为云 OBS</option>
                                    <option value="24">金山云 KS3</option>
                                    <option value="25">华云数据 COS</option>
                                    <option value="26">天翼云 CT-OOS</option>
                                </select>
                            </div>
                            <div class="input-group mb-3">
                                <span class="input-group-text w-25">Secret ID</span>
                                <input type="text" class="form-control" id="audios_secret_id">
                            </div>
                            <div class="input-group mb-3">
                                <span class="input-group-text w-25">Secret Key</span>
                                <input type="text" class="form-control" id="audios_secret_key">
                            </div>
                            <div class="input-group mb-3">
                                <span class="input-group-text w-25">存储配置名称</span>
                                <input type="text" class="form-control" id="audios_bucket_name">
                            </div>
                            <div class="input-group mb-3">
                                <span class="input-group-text w-25">存储配置地域</span>
                                <input type="text" class="form-control" id="audios_bucket_area">
                            </div>
                            <div class="input-group">
                                <span class="input-group-text w-25">存储配置域名</span>
                                <input type="url" class="form-control" id="audios_bucket_domain">
                            </div>
                        </div>
                    </div>
                    <!--功能配置-->
                    <div class="row mb-4">
                        <label for="account_policies" class="col-lg-3 col-xl-4 col-form-label text-lg-end">功能配置：</label>
                        <div class="col-lg-8 pt-2">
                            <div class="input-group mb-3">
                                <span class="input-group-text w-25">支持的扩展名</span>
                                <input type="text" class="form-control" id="audios_ext" placeholder="mp3,wav,m4a">
                            </div>
                            <div class="input-group mb-3">
                                <span class="input-group-text w-25">支持的最大尺寸</span>
                                <input type="text" class="form-control" id="audios_max_size">
                                <span class="input-group-text">MB</span>
                            </div>
                            <div class="input-group mb-3">
                                <span class="input-group-text w-25">支持的最大时长</span>
                                <input type="text" class="form-control" id="audios_max_time">
                                <span class="input-group-text">秒</span>
                            </div>
                            <div class="input-group mb-3">
                                <span class="input-group-text w-25">防盗链功能</span>
                                <div class="form-control bg-body">
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="audios_url_status" id="audios_url_status_false" value="false" data-bs-toggle="collapse" data-bs-target="#audios_url_status_setting.show" aria-expanded="false" aria-controls="audios_url_status_setting" checked>
                                        <label class="form-check-label" for="audios_url_status_false">关闭</label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="audios_url_status" id="audios_url_status_true" value="true" data-bs-toggle="collapse" data-bs-target="#audios_url_status_setting:not(.show)" aria-expanded="false" aria-controls="audios_url_status_setting">
                                        <label class="form-check-label" for="audios_url_status_true">开启</label>
                                    </div>
                                </div>
                            </div>
                            <!--防盗链功能 开始-->
                            <div class="collapse" id="audios_url_status_setting">
                                <div class="input-group mb-3">
                                    <span class="input-group-text w-25">防盗链 Key</span>
                                    <input type="text" class="form-control" id="audios_url_key">
                                </div>
                                <div class="input-group mb-3">
                                    <span class="input-group-text w-25">防盗链签名有效期</span>
                                    <input type="text" class="form-control" id="audios_url_expire">
                                    <span class="input-group-text">分钟</span>
                                </div>
                            </div>
                            <!--防盗链功能 结束-->
                        </div>
                    </div>
                    <!--音频处理功能配置-->
                    <div class="row mb-4">
                        <label for="account_policies" class="col-lg-3 col-xl-4 col-form-label text-lg-end">音频处理功能配置：</label>
                        <div class="col-lg-8 pt-2">
                            <div class="input-group mb-3">
                                <span class="input-group-text w-25">音频转码参数</span>
                                <input type="text" class="form-control" id="audios_transcode">
                            </div>
                            <div class="form-text"><i class="bi bi-info-circle"></i> 可以配置服务商处理模板 ID 或者参数，详情请查阅关联插件的说明。</div>
                        </div>
                    </div>

                    <!--保存按钮-->
                    <div class="row mt-5">
                        <div class="col-lg-3 col-xl-4"></div>
                        <div class="col-lg-8">
                            <button type="submit" class="btn btn-primary">提交保存</button>
                        </div>
                    </div>
                </form>
            </div>
            <div class="alert alert-warning mt-3 mx-3 mx-lg-0" role="alert">
                四种资源文件可以分开存储，也可以存储在同一处。将四个「存储配置」信息填写一致即可将资源文件存储在同一处。
            </div>
        </div>
    </main>

    <footer>
        <div class="copyright text-center">
            <p class="mt-5 mb-5 text-muted">&copy; 2021 Fresns</p>
        </div>
    </footer>

    <script src="../assets/javascript/bootstrap.bundle.min.js"></script>
    <script src="../assets/javascript/admin.js"></script>
</body>

</html>